package qianting.news.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import qianting.news.apis.models.wemedia.dtos.ChannelDto;
import qianting.news.apis.models.wemedia.pojos.WmChannel;
import qianting.news.common.entity.State;

public interface WmChannelService extends IService<WmChannel> {

    /**
     * 查询所有频道
     * @return
     */
    public State findAll();

    /**
     * 模糊查询
     * @param dto
     * @return
     */
    State findByNameAndPage(ChannelDto dto);

    /**
     * 保存
     * @param wmChannel
     * @return
     */
    State insert(WmChannel wmChannel);

    /**
     * 修改
     * @param wmChannel
     * @return
     */
    State update(WmChannel wmChannel);

    /**
     * 删除
     * @param id
     * @return
     */
    State delete(Integer id);

}